﻿using HongStone.Domain.AttendanceManagement;
using HongStone.Domain.SystemSetupModel.InstitutionSettingModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HongStone.Ince
{
    /// <summary>
    /// 登录首页接口
    /// </summary>
    public interface LoginInce
    {
        /// <summary>
        /// 注册用户
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int AddLogin(Login model);

        /// <summary>
        /// 登录
        /// </summary>
        /// <returns></returns>
        public List<Login> ValidateLogon(Login model);

        /// <summary>
        /// 找回密码
        /// </summary>
        /// <returns></returns>
        public List<Login> RetrievePassword(string LoginAccount, string LoginName);

        /// <summary>
        /// 显示个人信息
        /// </summary>
        /// <returns></returns>
        public List<Login> GetLogin(int LoginId);

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="LoginId"></param>
        /// <returns></returns>
        public int XiuGai(Login model);

        /// <summary>
        /// 锁屏
        /// </summary>
        /// <returns></returns>
        public List<Login> GetLoginName(string Name, string PassWork);

        /// <summary>
        /// 显示消息列表详细信息
        /// </summary>
        /// <returns></returns>
        public List<MessageApproval> GetMessageApproval(string NeiRong, int ZhuangTai, out int totalCount);

        /// <summary>
        /// 找回密码前修改密码为默认密码
        /// </summary>
        /// <returns></returns>
        public List<Login> XiuGai(string Email);
    }
}
